using System;
using System.ComponentModel;
using System.Collections.Generic;

namespace shfa.snomtastic.data.business
{

    public partial class ConfigurationController
    {
        public List<ConfigurationSettingInfo> GetPhoneSettings(string macAddress)
        {
            PhoneController pc = new PhoneController();
            PhoneInfo pi = pc.SelectPhoneByMacAddress(macAddress);
            if (pi != null)
            {
                Guid configurationId = pi.ConfigurationId;

                ConfigurationSettingController csc = new ConfigurationSettingController();
                List<ConfigurationSettingInfo> csi = csc.SelectConfigurationSettingsByConfiguration(configurationId);
                if (csi != null)
                {
                    return csi;
                }
            }

            return new List<ConfigurationSettingInfo>();


        }
    }

}
